/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.agi.myhome;

import java.io.Serializable;
import javax.enterprise.context.Conversation;
import javax.inject.Named;

/**
 *
 * @author Renato
 */
@Named
public class IniciadorConversacao implements Serializable{
    public void iniciarConversacao(Conversation conversation){
        if(!conversation.isTransient()){
            conversation.end();
        }
        conversation.begin();
    }
    
}
